package cn.com.nes.mybatis.agent.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 属性参数值表
 * </p>
 *
 * @author nes
 * @since 2023-04-14
 */
@TableName("t_param")
public class TParam extends Model<TParam> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "uuid", type = IdType.AUTO)
    private Integer uuid;
    /**
     * 参数类型id
     */
    @TableField("param_type")
    private String paramType;
    /**
     * 字典名称
     */
    @TableField("type_name")
    private String typeName;
    /**
     * 名称
     */
    private String name;
    /**
     * 值
     */
    private String value;
    /**
     * 逻辑删除，1 表示删除，0 表示未删除。
     */
    @TableField("is_delete")
    private Integer isDelete;
    private Integer sort;
    /**
     * 创建时间
     */
    @TableField("gmt_create")
    private Date gmtCreate;
    /**
     * 上级代码
     */
    private String sjdm;
    /**
     * 标识前端新增
     */
    private Integer flag;
    /**
     * 公司ID
     */
    @TableField("companyId")
    private String companyId;


    public Integer getUuid() {
        return uuid;
    }

    public void setUuid(Integer uuid) {
        this.uuid = uuid;
    }

    public String getParamType() {
        return paramType;
    }

    public void setParamType(String paramType) {
        this.paramType = paramType;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public String getSjdm() {
        return sjdm;
    }

    public void setSjdm(String sjdm) {
        this.sjdm = sjdm;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public static final String UUID = "uuid";

    public static final String PARAM_TYPE = "param_type";

    public static final String TYPE_NAME = "type_name";

    public static final String NAME = "name";

    public static final String VALUE = "value";

    public static final String IS_DELETE = "is_delete";

    public static final String SORT = "sort";

    public static final String GMT_CREATE = "gmt_create";

    public static final String SJDM = "sjdm";

    public static final String FLAG = "flag";

    public static final String COMPANYID = "companyId";

    @Override
    public Serializable pkVal() {
        return this.uuid;
    }

    @Override
    public String toString() {
        return "TParam{" +
        ", uuid=" + uuid +
        ", paramType=" + paramType +
        ", typeName=" + typeName +
        ", name=" + name +
        ", value=" + value +
        ", isDelete=" + isDelete +
        ", sort=" + sort +
        ", gmtCreate=" + gmtCreate +
        ", sjdm=" + sjdm +
        ", flag=" + flag +
        ", companyId=" + companyId +
        "}";
    }
}
